package com.xiaogang.ggfw.model.sys.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

/**
 * @ProjectName : verifyRobot
 * @作者 : 侯小刚
 * @描述 :
 * @创建日期 : 2022/9/15 10:01
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SignModelBean {

    private String appKey;
    // 随机码
    private String uuid;
    // 时间戳
    private String time;
    // 签名
    private String signature;

    public String getAppKey() {
        return this.appKey;
    }

    public String getUuid() {
        return this.uuid;
    }

    public String getTime() {
        return this.time;
    }

    public String getSignature() {
        return this.signature;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof SignModelBean)) return false;
        final SignModelBean other = (SignModelBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$appKey = this.getAppKey();
        final Object other$appKey = other.getAppKey();
        if (this$appKey == null ? other$appKey != null : !this$appKey.equals(other$appKey)) return false;
        final Object this$uuid = this.getUuid();
        final Object other$uuid = other.getUuid();
        if (this$uuid == null ? other$uuid != null : !this$uuid.equals(other$uuid)) return false;
        final Object this$time = this.getTime();
        final Object other$time = other.getTime();
        if (this$time == null ? other$time != null : !this$time.equals(other$time)) return false;
        final Object this$signature = this.getSignature();
        final Object other$signature = other.getSignature();
        if (this$signature == null ? other$signature != null : !this$signature.equals(other$signature)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SignModelBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $appKey = this.getAppKey();
        result = result * PRIME + ($appKey == null ? 43 : $appKey.hashCode());
        final Object $uuid = this.getUuid();
        result = result * PRIME + ($uuid == null ? 43 : $uuid.hashCode());
        final Object $time = this.getTime();
        result = result * PRIME + ($time == null ? 43 : $time.hashCode());
        final Object $signature = this.getSignature();
        result = result * PRIME + ($signature == null ? 43 : $signature.hashCode());
        return result;
    }

    public String toString() {
        return "SignModelBean(appKey=" + this.getAppKey() + ", uuid=" + this.getUuid() + ", time=" + this.getTime() + ", signature=" + this.getSignature() + ")";
    }
}
